package study.springboot.mvc.auth;

import org.slf4j.MDC;

/**
 * MDC: Manufacturing Data Collection 生产数据实时采集和分析
 */
public class MDCs {

    private static final String X_TRACE_KEY = "trace_key";

    public static void putTraceKey(String traceKey) {
        MDC.put(X_TRACE_KEY, traceKey);
    }

    public static void remove() {
        MDC.remove(X_TRACE_KEY);
    }
}
